/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="TEXTOSLAUDOS")
public class TextosLaudosProteu implements Serializable{

    @Id
    @Column(name="TEX_ST_CODIGO")
    private String texStCodigo;
    @Column(name="TEX_ST_TITULO")
    private String texStTitulo;
    @Lob
    @Column(name="TEX_BL_MODELO")
    private String texBlModelo;
    @Column(name="PROC_ST_CODIGO_AMB")
    private String procStCodigoAmb;

    public String getProcStCodigoAmb() {
        return procStCodigoAmb;
    }

    public void setProcStCodigoAmb(String procStCodigoAmb) {
        this.procStCodigoAmb = procStCodigoAmb;
    }

    public String getTexBlModelo() {
        return texBlModelo;
    }

    public void setTexBlModelo(String texBlModelo) {
        this.texBlModelo = texBlModelo;
    }

    public String getTexStCodigo() {
        return texStCodigo;
    }

    public void setTexStCodigo(String texStCodigo) {
        this.texStCodigo = texStCodigo;
    }

    public String getTexStTitulo() {
        return texStTitulo;
    }

    public void setTexStTitulo(String texStTitulo) {
        this.texStTitulo = texStTitulo;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TextosLaudosProteu other = (TextosLaudosProteu) obj;
        if ((this.texStCodigo == null) ? (other.texStCodigo != null) : !this.texStCodigo.equals(other.texStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 97 * hash + (this.texStCodigo != null ? this.texStCodigo.hashCode() : 0);
        return hash;
    }



}
